package model.stageOfGame;

import model.conversations._ConversationManager;
import model.locations._World;
import model.stageOfGame.Stage;

public class ConversationSuccessStage extends Stage{

	String person;
	//this class renders a success if a certain there a a success with a particular person;
	public ConversationSuccessStage(_World world,_ConversationManager convManager,String description,String person)  {
		super(world,convManager,description);
		this.description=description;
		this.convManager=convManager;
		this.world=world;
		this.person=person;
	}

	@Override
	public boolean isStageComplete() {
		if(convManager.getLastPersonInConversation().equals(person))
		return convManager.getStatusFinalReply();
		return false;
	}

	@Override
	public String getDescription() {
		return description;
	}

}
